package com.keepsport.keepsportapi.controller;

import com.keepsport.keepsportapi.service.intf.SmsLogService;
import com.keepsport.keepsportapi.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 　　　　　   　▍ ★∴
 * 　　　．．．．▍▍．..．█▍ ☆ ★∵ ..../
 * 　　 　◥█▅▅██▅▅██▅▅▅▅▅▅▅▅▅███◤
 * 　　 　．◥███████████████◤
 * 　 ～～～～◥█████████████◤～～～～
 *
 * @author dyb
 * @create 2022-06-29 17:13
 */
@RestController
@RequestMapping("/api/sms/")
@Api
@CrossOrigin
public class SmsController {
    @Resource
    private SmsLogService service;

    @GetMapping("sendlogin.do")
    public R sendLogin(String phone){
        return service.sendLoginCode(phone);
    }

    @GetMapping("sendfind.do")
    public R sendFand(String phone){
        return service.sendFindCode(phone);
    }
}
